package com.yufei.infoExtractor.io;

/**
 * @author jasstion
   2012-11-27
 *包含一些浏览器访问网页的参数比如：是否代理，超时设置等
 */
public class DataRetrieverFeatures {
public DataRetrieverFeatures(Boolean requestExecuteJs, String protocolType) {
		super();
		this.requestExecuteJs = requestExecuteJs;
		this.proxyServerIdentity = protocolType;
	}
private Boolean requestExecuteJs=true;
/**
 * 系统能够利用此字符去获取对应的代理配置
 */
private String proxyServerIdentity;
/**
 * 请求超时时间
 */
private Integer requestTimeout=5*1000;

/**
 * 链接超时时间
 */
private Integer connectionTimeout=5*1000;
public Integer getConnectionTimeout() {
	return connectionTimeout;
}
public void setConnectionTimeout(Integer connectionTimeout) {
	this.connectionTimeout = connectionTimeout;
}
public Integer getRequestTimeout() {
	return requestTimeout;
}
public void setRequestTimeout(Integer requestTimeout) {
	this.requestTimeout = requestTimeout;
}

public DataRetrieverFeatures(Boolean requestExecuteJs, String protocolType,
		Long connectIntervalTime,Integer requestTimeout) {
	super();
	this.requestExecuteJs = requestExecuteJs;
	this.proxyServerIdentity = protocolType;
	this.connectIntervalTime = connectIntervalTime;
	this.requestTimeout=requestTimeout;
}
/**
 * 两次请求之间的时间间隔单位是秒
 */
private Long connectIntervalTime;


public Long getConnectIntervalTime() {
	return connectIntervalTime;
}
public void setConnectIntervalTime(Long connectIntervalTime) {
	this.connectIntervalTime = connectIntervalTime;
}
public Boolean getRequestExecuteJs() {
	return requestExecuteJs;
}
public void setRequestExecuteJs(Boolean requestExecuteJs) {
	this.requestExecuteJs = requestExecuteJs;
}
public String getProxyServerIdentity() {
	return proxyServerIdentity;
}
public void setProxyServerIdentity(String proxyServerIdentity) {
	this.proxyServerIdentity = proxyServerIdentity;
}


}
